package struct.proxy;

import java.lang.reflect.Proxy;

/**
 * @Author: fxy
 * @Date: 2022/08/18/17:41
 * @Description:
 */
public class JdkProxyTest {
    public static void main(String[] args) {
        Target proxy = (Target) Proxy.newProxyInstance(JdkProxyTest.class.getClassLoader(),new Class[]{Target.class},new TargetProxy());
        proxy.t1("222222","333333333");
    }
}
